package com.engine.core.dao;

import com.engine.core.domain.CustomQuery;
import com.engine.core.domain.CustomUpdate;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface CodeCustomQueryMapper {
    CustomQuery getCustomQuery(int queryId);

    CustomUpdate getCustomUpdate(int queryId);

    int insertCustomQuery(CustomQuery customQuery);

    CustomQuery selectByName(@Param("name") String name,@Param("namespace")  String namespace);

    int deleteByName(@Param("name") String name,@Param("namespace")  String namespace);

}
